﻿using System;
using System.Collections.Generic;
using System.Text;
using ShootSearch.Core;

namespace ShootSearch.Indexers
{
    public class HubbleIndexerConfig: SpiderManConfig
    {
        public string Connection { get; set; }
        public string Table { get; set; }
        public List<HubbleIndexerAttribute> InterestedAttributes { get; set; }

        public HubbleIndexerConfig() 
        {
            InterestedAttributes = new List<HubbleIndexerAttribute>();
        }


        public class HubbleIndexerAttribute : IndexerAttribute
        {
            public bool IsString { get; set; }
            public string ColumnName { get; set; }

            public HubbleIndexerAttribute() : base() { }

            public HubbleIndexerAttribute(string name) : base(name) 
            {
                this.ColumnName = name;
            }

            public HubbleIndexerAttribute(string name, bool isString) :base(name)
            {
                this.ColumnName = name;
                IsString = isString;
            }

        }
    }
}
